package chapter21.others;

import java.util.concurrent.Callable;

/**
 * Created by lzy
 * Date: 2018/6/2
 */
public class TaskWithResult implements Callable<String> {
    private final int id;

    public TaskWithResult(int id) {
        this.id = id;
    }

    @Override
    public String call() throws Exception {
        return "result of TaskWithResult " + id;
    }
}
